<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
  <title>文章列表</title>
</head>
<body>
<s:iterator value="#articles">
  <div>
    <p>
      <span>${title}</span>
      <span>${publishTime}</span>
      <span>${username}</span>
    </p>
    <p>${content}</p>
    <p>
      <a href="comment_addPrepare?articleId=${id}">评论</a>
      <a href="comment_list?articleId=${id}">跟帖</a>
      <a href="article_editPrepare?id=${id}">编辑</a>
    </p>
  </div>
  <p>====================================================</p>
</s:iterator>
  <a href="article_addPrepare">发表文章</a>
</body>
</html>